<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<h4>以post方式请求ajax</h4>
	<button>请求</button>
	{{csrf_field()}}
	<script type="text/javascript" src="/js/jquery-1.8.3.js"></script>
	<script type="text/javascript">
	$('button:eq(0)').click(function(){
		$.ajax({
			url:'/test',
			type:'post',
			data:{'_token':$('input:eq(0)').val()},
			success:function(mes){
				alert(mes);
			}
		});
	});
	</script>
</body>
</html>